const kshLargeScreenRunDataApi = {}

import http from '@/plugin/axios'
import {viewApi} from '@/config/env'

/**
 * @author ling.yuan@topevery.club
 * @date 2020/4/18 14:20:42
 * @Description: 获取运行概况总体统计数据
 */
kshLargeScreenRunDataApi.getStatisticsData = () => {
  return http.$GET(`/${viewApi}/kshLargeScreenRunData/getStatisticsData`)
}
/**
 * @author ling.yuan@topevery.club
 * @date 2020/4/18 14:20:42
 * @Description: 获取运行概况多柱图数据
 */
kshLargeScreenRunDataApi.getEventStatusTotalData = (startTime, endTime) => {
  return http.$GET(`/${viewApi}/kshLargeScreenRunData/getEventStatusTotalData/${startTime}&${endTime}`)
}
/**
 * @author ling.yuan@topevery.club
 * @date 2020/04/21 11:01:13
 * @Description: 获取时间段案件数据
 */
kshLargeScreenRunDataApi.getEventTimeIntervalData = () => {
  return http.$GET(`/${viewApi}/kshLargeScreenRunData/getEventTimeIntervalData`)
}
/**
 * @author ling.yuan@topevery.club
 * @date 2020/04/21 11:01:13
 * @Description: 获取事部件海量点数据
 */
kshLargeScreenRunDataApi.getEventTimeIntervalData2 = (startDate, endDate, smallName) => {
  return http.$GET(`/${viewApi}/kshLargeScreenRunData/getEventTimeIntervalData${startDate}&${endDate}&${smallName}`)
}
export default kshLargeScreenRunDataApi
